home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / quartz / quartz10.lha / FTexample / Makefile < prev    next >
Makefile  |  1990-05-18  |  1KB  |  44 lines

  1. FTDIR=../
  2.  
  3. PARAMS=-DPROFILE -DPARANOID
  4. PG=-pg
  5. INC=$(FTDIR)/include
  6. BIN=$(FTDIR)/bin
  7. DIR=$(FTDIR)/lib
  8. CRT=$(DIR)/crt0.o
  9. LIB=$(DIR)/thread_dp.a
  10.  
  11. CFLAGS = -c -g $(PARAMS) $(PG) -I$(INC)
  12. LDFLAGS=-h -Z0200000 -X
  13.  
  14.  
  15. HDRS=$(INC)/synch.h $(INC)/thread.h $(INC)/quartzcommon.h
  16.  
  17. fasttest.p:& fasttest.o dummy.o $(CRT) $(LIB)
  18.     ld $(LDFLAGS) $(CRT) fasttest.o dummy.o $(LIB) -lpps -lseq -lc_p -o fasttest
  19.     $(BIN)/munge -i fasttest -o fasttest.p
  20.  
  21. bench.p:& bench.o $(CRT) $(LIB)
  22.     ld $(LDFLAGS) $(CRT) bench.o $(LIB) -lpps -lseq -lc_p -o bench
  23.     $(BIN)/munge -i bench -o bench.p
  24.     
  25. qsort.p:& qsort.o $(CRT) $(LIB)
  26.     ld $(LDFLAGS) $(CRT) qsort.o $(LIB) -lpps -lseq -lc_p -o qsort
  27.     $(BIN)/munge -i qsort -o qsort.p
  28.  
  29. clean:
  30.     rm -rf bench.p bench qsort.p qsort fasttest.p fasttest quartz *.o quartzData.c procNames.c 
  31.  
  32. # This is common for all programs
  33. quartz:& procNames.o quartzData.o $(DIR)/quartz.o
  34.     cc -g procNames.o quartzData.o $(DIR)/quartz.o -lm -lX11 -o quartz  
  35.  
  36. bench.o: bench.c $(HDRS)
  37. qsort.o: qsort.c $(HDRS)
  38. fasttest.o: fasttest.c $(HDRS)
  39.  
  40. lint:
  41.     lint -hbu $(PARAMS) -DLINT -I$(INC) bench.c $(DIR)/llib-lthread.ln
  42.     lint -hbu $(PARAMS) -DLINT -I$(INC) qsort.c $(DIR)/llib-lthread.ln
  43.     lint -hbu $(PARAMS) -DLINT -I$(INC) fasttest.c $(DIR)/llib-lthread.ln
  44.